import Base from '../../static/js/base'
class Category extends Base{
	constructor() {
		super();
	}
	//商品一级分类
	product_type_one_list(callBack) {
		var that = this;
		var params = {
		  url: 'product_type/product_type_one',
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	//分类轮播图
	product_type_banner_list(callBack) {
		var that = this;
		var params = {
		  url: 'product_type/product_type_banner_list',
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	//商品二级三级分类
	product_type_two_list(id,callBack) {
		var that = this;
		var params = {
		  url: 'product_type/product_type_two',
		  data:{id:id},
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	// 我的信息
	my(callBack) {
		var that = this;
		var params = {
		  url: 'login/my',
		  method:'POST',
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
}

export default Category	